-
-
Notifications
You must be signed in to change notification settings - Fork 59
[TYPES] [Features] Added creation of JavaScript password to encrypt vendor scripts #3132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Added creation of javascript password to encrypt vendor scripts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for vendor-specific JavaScript password encryption in the ioBroker setup process. The changes enable vendors to provide a JavaScript password in their vendor configuration file (iob-vendor.json), which will be encrypted and stored in the system configuration.
- Added
javascriptPasswordfield to vendor file interface and handling logic - Improved type safety across setup files with better TypeScript typing
- Updated database configuration types to support Redis Sentinel with array types for host and port
- Applied code modernization using nullish coalescing operators and optional chaining
Reviewed Changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| packages/types-dev/config.d.ts | Updated DatabaseOptions interface to support Redis Sentinel (arrays for host/port) and made dataDir optional |
| packages/cli/src/lib/setup/setupVendor.ts | Added JavaScript password encryption feature, improved typing with iobVendorFile interface and InternalLogger type |
| packages/cli/src/lib/setup/setupSetup.ts | Enhanced type safety, improved import organization, and updated variable naming consistency |
| CHANGELOG.md | Documented the new JavaScript password encryption feature |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 16 out of 18 changed files in this pull request and generated 5 comments.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
@GermanBluefox I've opened a new pull request, #3144, to work on those changes. Once the pull request is ready, I'll request review from you. |
…3144) * Initial plan * Remove useless dataDir check in setupSetup.ts The check was reading config and testing if dataDir exists, but then just writing it back without modification. This serves no purpose and has been removed per feedback. Co-authored-by: GermanBluefox <4582016+GermanBluefox@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: GermanBluefox <4582016+GermanBluefox@users.noreply.github.com> Co-authored-by: Bluefox <dogafox@gmail.com>
…racefully stop it to let the jsonl files be written
Added creation of javascript password to encrypt vendor scripts
Vendor wants to encrypt all specific scripts.